home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
010
/
dbasgolf.arc
/
ANIMATE.PRG
next >
Wrap
Text File
|
1987-07-27
|
3KB
|
92 lines
*
* the stop column variable September 6, 1985
* added in this version
* Updated and converted
* to dBASE III by
*
* can be compiled
* with "Clipper"
*
* Peter A. Andres dBASE III version
* (201) 852-6301
*
* with thanks to
* Michael Cohn dBASE II version
* (301) 987-5914
* or
* BHEC RCPM (eves/wknds)
* (301) 661-4447
*
*
* This is a routine to animate a character string
* across any line of a screen using dBASE III
* It may be useful during a sign-on routine
* displaying the copyright, or some such...
*
* This module can be run as a stand-alone demo
* as is. Just type DO ANIDB3
*
* To call this routine from another
* dBASE III command file, delete the first
* "accept" statement, and the first "input"
* statement in this file.
*
* INSTRUCTIONS FOR USE:
*
* add these lines to your main.prg file:
*
* STORE "WHATEVER CHR STRING, ETC." TO anline
*
* STORE 12 TO mline * (or whatever line
* * number you want
* * the animation to
* * appear on)
*
* STORE 40 TO scol * (or whatever column
* * number you want
* * the animation to
* * stop at)
*
* DO animate
*
CLEAR
SET TALK OFF
CLEAR
*
*=========================> To use as a sub-routine or sub-program
* > delete or comment out all previous
* > commands and use the instructions
* > at the top. To run as a standalone
*=========================> demo just DO ANIDB3
*
STORE LEN(anline) TO mlen
STORE mlen TO mstart
DO WHILE mstart > 0
@ mline-1,0 SAY SUBSTR(anline,mstart)
STORE mstart - 1 TO mstart
ENDDO
STORE " " TO mspace
STORE 1 TO mcount
DO WHILE mcount < scol
IF mcount > scol-mlen
EXIT
ENDIF
@ mline-1,0 SAY mspace + SUBSTR(anline,1,mlen)
STORE mspace + " " TO mspace
STORE mcount + 1 TO mcount
ENDDO
?
?
?
?
?
?
?
?
?
?
?
?
WAIT
RETURN